import req from '@/utils/req'

// const MODULE_URL = process.env.BASE_API_process + '/factory/bom/';


//新建
export function createRow(obj) {
  return req.post('/factory/bom/create',obj);
}

//修改
export function editRow(obj) {
  return req.post('/factory/bom/update',obj);
}

//删除
export function deleteRows(id) {
  return req.post('/factory/bom/delete?id='+id)
}

//获取BOM物料列表
export function materielsList(obj) {
  return req.post('/factory/bom/bomMateriels',obj)
}
//分页查询工艺BOM
export function getList(obj) {
  return req.post('/factory/bom/list',obj)
}
//根据参数q，分页查询工艺BOM
export function query(obj) {
  return req.post('/factory/bom/queryBomByParameters',obj)
}